<extend name="Public:comment" />

<block name="title">收藏中心</block>

<block name="css">
	<link rel="stylesheet" href="/Application/Home/Common/css/base.css" type="text/css" />
	<link rel="stylesheet" href="/Application/Home/Common/css/shop_common.css" type="text/css" />
	<link rel="stylesheet" href="/Application/Home/Common/css/shop_header.css" type="text/css" />
	<link rel="stylesheet" href="/Application/Home/Common/css/shop_manager.css" type="text/css" />
	<link rel="stylesheet" href="/Application/Home/Common/css/shop_list.css" type="text/css" />
</block>

<block name="js">
	<script type="text/javascript" src="/Application/Home/Common/js/jquery.js" ></script>
    <script type="text/javascript" src="/Application/Home/Common/js/topNav.js" ></script>
</block>

<block name="shouye">
<div id="shop_hd_menu_all_category" class="shop_hd_menu_all_category"><!-- 首页去掉 id="shop_hd_menu_all_category" 加上clsss shop_hd_menu_hover -->
</block>

<block name="content">
<!-- 面包屑 注意首页没有 -->
	<div class="shop_hd_breadcrumb">
		<strong>当前位置：</strong>
		<span>
			<a href="{:U('Index/index')}">首页</a>&nbsp;›&nbsp;
			<a href="{:U('User/member')}">我的商城</a>&nbsp;›&nbsp;
			<a href="{:U('User/favorite')}">我的收藏</a>
		</span>
	</div>
	<div class="clear"></div>
	<!-- 面包屑 End -->

	<!-- Header End -->	

	<!-- 我的个人中心 -->
	<div class="shop_member_bd clearfix">
		<!-- 左边导航 -->
		<div class="shop_member_bd_left clearfix">
			
			<div class="shop_member_bd_left_pic">
				<a href="javascript:void(0);"><img src="/Application/Home/Common/images/avatar.png" /></a>
			</div>
			<div class="clear"></div>

			<dl>
				<dt>我的交易</dt>
				<dd><span><a href="{:U('User/member')}">已购买商品</a></span></dd>
				<dd><span><a href="{:U('favorite')}">我的收藏</a></span></dd>
				<dd><span><a href="{:U('User/estimate')}">评价管理</a></span></dd>
			</dl>

			<dl>
				<dt>我的账户</dt>
				<dd><span><a href="{:U('User/member_info')}">个人资料</a></span></dd>
				<dd><span><a href="{:U('User/password_edit')}">密码修改</a></span></dd>
				<dd><span><a href="{:U('User/address')}">收货地址</a></span></dd>
			</dl>
		</div>
		<!-- 左边导航 End -->
		
		<!-- 右边购物列表 -->
		<div class="shop_member_bd_right clearfix">
			
			<div class="shop_meber_bd_good_lists clearfix">
				<div class="title"><h3>我的收藏</h3></div>
				
				<!-- 商品列表 -->
			<div class="shop_bd_list_content clearfix">
				<ul>	
					<foreach name="res" item='v'>
						<li>
							<dl>
								<dt><a href=""><img src="/Uploads/{$v['pic']}" /></a></dt>
								<dd class="title"><a href="">{$v['content']}</a></dd>
								<dd class="content" style="position:relative;">
									<span class="goods_jiage">￥<strong>{$v.cost}</strong></span>
									<span class="goods_chengjiao">商品剩余{$v.count}件</span>
									<a href="{:U('favorite_delete',array('id'=>$v['id']))}"><img class="img_unfllow" src="/Public/images/81e58PICS42_1024.png" style="position:absolute;top:5px;left:65px;width:14px;height:14px;"></a>
									<span style="position:absolute;top:10px;left:45px;color:red;font-size:14px;" class="unfllow"></span>
								</dd>
							</dl>
						</li>
					</foreach>
				</ul>
			</div>
			<div class="clear"></div>
			<div class="pagination">
				<ul><li><span>首页</span></li>
					<li><span>上一页</span></li>
					<li><span class="currentpage">1</span></li>
					<li><span>下一页</span></li>
					<li><span>末页</span></li>
				</ul> 
			</div>
			<!-- 商品列表 End -->

			</div>
		</div>
		<!-- 右边购物列表 End -->

	</div>
	<!-- 我的个人中心 End -->
	<script type="text/javascript">
		$(function(){
			$(".img_unfllow").mouseover(function(){
    			var ind = $(".img_unfllow").index($(this));
				$.ajax({
				   type: "get",
				   url: "{:U('favorite_ajax')}",
				   data: null,
				   success: function(msg){
				     	$(".unfllow").eq(ind).append(msg);
				   }
				});
			});

			$(".img_unfllow").mouseout(function(){
				$.ajax({
				   type: "get",
				   url: "",
				   data: null,
				   success: function(msg){
				     	$(".unfllow").html("");
				   }
				});
			});
		});
	</script>
</block>